//
//  DAUTabVC.m
//  DAU-iOS
//
//  Created by XiangDongMBP on 2016/11/17.
//  Copyright © 2016年 East. All rights reserved.
//

#import "DAUTabVC.h"
#import "DAUEngineRoomTVC.h"
#import "DAUPerCenterTVC.h"

@interface DAUTabVC ()

@end

@implementation DAUTabVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    [self initSubViews];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

- (void)initSubViews {
    DAUEngineRoomTVC *engineVC = [[DAUEngineRoomTVC alloc] init];
    UINavigationController *engineNav = [[UINavigationController alloc] initWithRootViewController:engineVC];
    engineNav.tabBarItem.title = NSLocalizedString(@"机房", nil);
    engineNav.tabBarItem.image = [UIImage imageNamed:@"tab_room_nor"];
    engineNav.tabBarItem.selectedImage = [UIImage imageNamed:@"tab_room_sel"];
    
    DAUPerCenterTVC *perVC = [[DAUPerCenterTVC alloc] init];
    UINavigationController *perNav = [[UINavigationController alloc] initWithRootViewController:perVC];
    perNav.tabBarItem.title = NSLocalizedString(@"我的", nil);
    perNav.tabBarItem.image = [UIImage imageNamed:@"tab_mine_nor"];
    perNav.tabBarItem.selectedImage = [UIImage imageNamed:@"tab_mine_sel"];
    
    self.viewControllers = @[engineNav, perNav];
}

@end
